<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关闭广告</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div{
            width: 270px;
            height: 260px;
            position: relative;
            margin: 100px auto;
        }
        #pe_code{
            position: absolute;
        }
        #close{
            width: 5px;
            height: 5px;
            position: relative;
            top: 5px;
            cursor: pointer;
            transition: all .01s;
            /* border: rgb(211, 211, 211) 1px; */
        }
        #close:hover{
            color: rgb(255, 60, 0);
        }
    </style>
</head>
<body>
    <div id="all">
        <span id="close">X</span>
        <img src="download.png" alt="" id="pe_code">    
        <script>
            var closeObj = document.getElementById('close');
            var divObj = document.getElementById('all')
            closeObj.onclick = function(){
                divObj.style.display = 'none'
            }
        </script>   
    </div>
</body>
</html>